export interface IAlgoUnit {
  id: string;
  name: string;
  type: string;
  color: string;
}

export interface AlgoGraphConfig {
  Id: string;
  Units: AlgoUnitConfig[];
  Links: AlgoLinkConfig[];
}

export interface AlgoUnitConfig {
  Id: string;
  Name: string;
  Group: string;
  Positon: { X: number, Y: number; },
  Size: { Width: number, Height: number; },
  Ports: AlgoPortConfig[];
}

export interface AlgoPortConfig {
  Type: string;
  Id: string;
}

export interface AlgoLinkConfig {
  SourceId: string;
  SourcePortId: string;
  TargetId: string;
  TargetPortId: string;
}